<script setup>
const startQuiz = () => {
  window.location.href = '/question';
}
</script>

<template>
  <div class="index-view">
    <img src="/image/quiz1.png" alt="">
    <button @click="startQuiz">
      <img src="/image/quiz2.png" alt="">
    </button>
  </div>
</template>

<style scoped lang="scss">
.index-view {
  background-color: var(--cx-color2);
  width: 100%;
  height: 100vh;
  position: relative;

  img {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
  }

  button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cx-color3);
    border: none;
    width: 180px;
    height: 60px;
    border-radius: 10px;
    cursor: pointer;

    img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 85%;
      height: auto;
    }
  }
}
</style>